package com.medi.chats.service.chats;

import com.medi.chats.dao.McUserBuyMapper;
import com.medi.chats.model.McUserBuy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 描述:
 * 用户购买服务
 *
 * @outhor Administrator
 * @create 2018-10-25 16:12
 */
@Service
public class UserBuyService {

    @Autowired
    McUserBuyMapper mcUserBuyMapper;

    /**
     * @Description  根据用户ID，项目ID和类别来检索购买信息。
     * @Author        Administrator
     * @Date          2018/11/10 14:35
    */
    public McUserBuy selectByUserItemType(Map map) {
        return mcUserBuyMapper.selectByUserItemType(map);
    }


    /**
     * @Description  获取购买某课程的购买信息和用户信息
     * @Author        Administrator
     * @Date          2018/11/10 15:10
    */
    public List<McUserBuy> selectBuyListByItemType(Map map) {
        return mcUserBuyMapper.selectBuyListByItemType(map);
    }

}
